//
//  OneViewController.m
//  ttxt
//
//  Created by 刘杰辉 on 2017/3/14.
//  Copyright © 2017年 刘杰辉. All rights reserved.
//

#import "OneViewController.h"
#import "KXYXGameSDK.framework/Headers/KXYXSDKManager.h"
#import "TwoViewController.h"
#import <UserNotifications/UserNotifications.h>



#define IOS8 ([[[UIDevice currentDevice] systemVersion] doubleValue] >=8.0 ? YES : NO)
@interface OneViewController ()
{
    UIWebView *webView;
}

@end


@implementation OneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (IBAction)login{
    
    [KXYXSDKManager sharedVOneSDK].orientation = UIInterfaceOrientationMaskLandscape;
    [[KXYXSDKManager sharedVOneSDK] login:self success:^{
        
        TwoViewController * _vc = [self.storyboard instantiateViewControllerWithIdentifier:@"TwoViewController"];
        [self presentViewController:_vc animated:YES completion:nil];

    } failure:^(NSString * failStr) {
        NSLog(@"%@",failStr);
    }];
    
}

- (IBAction)model:(UIButton *)sender {
    
}

@end
